import  service from './request';

// 一个请求封装一个函数
export function  shop_list(params={}){
    return  service.get('/shop/list',{params})
}

export function  tuan_list(params={}){
    return  service.get('/tuan/list',{params})
}

export function  shop_shopinfo(params={}){
    return  service.get('/shop/shopinfo',{params})
}

export function  shopcart_list(params={}){
    return  service.get('/shopcart/list',{params})
}

export function  banner_list(params={}){
    return  service.get('/banner/list',{params})
}

export function  user_login(params={}){
    return  service.post('/user/login',params)
}

export function  user_register(params={}){
    return  service.post('/user/register',params)
}

export function shop_search(params={}){
    return service.get('/shop/search',{params})
}

export function shop_favlist(params={}){
    return service.get('/shop/favlist',{params})
}

export function  shop_fav(params={}){
    return  service.post('/shop/fav',params)
}

export function  shop_unfav(params={}){
    return  service.post('/shop/unfav',params)
}

export function  shopcart_clear(params={}){
    return  service.post('/shopcart/clear',params)
}
export function  shopcart_add(params={}){
    return  service.post('/shopcart/add',params)
}
export function  shopcart_sub(params={}){
    return  service.post('/shopcart/sub',params)
}
export function address_list(params={}){
    return service.get('/address/list',{params})
}
export function  address_add(params={}){
    return  service.post('/address/add',params)
}

export function  address_del(params={}){
    return  service.post('/address/del',params)
}

export function  address_edit(params={}){
    return  service.post('/address/edit',params)
}

